package com.todo.biz.application.remote;

import com.todo.common.common.entity.response.BizResponse;
import com.todo.strategy.online.service.api.response.PlanSetDetailResponse;
import com.todo.strategy.online.service.api.response.PlanSetInfoResponse;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/2/27 22:17
 * @description
 */
@FeignClient(name = "todoStrategyOnlineService", url = "http://localhost:18004")
public interface PlanSetRemoteService {

    @Operation(summary = "根据id查询计划集合详情")
    @PostMapping("/api/plan/queryPlanSetDetailById")
    BizResponse<PlanSetDetailResponse> queryPlanSetDetailById(@RequestBody Long planId);

    @Operation(summary = "根据id查询计划集合信息")
    @PostMapping("/api/plan/queryPlanSetInfoById")
    BizResponse<PlanSetInfoResponse> queryPlanSetInfoById(@RequestBody Long planId);

    @Operation(summary = "根据id列表查询计划集合信息")
    @PostMapping("/api/plan/queryPlanSetInfoListByIdList")
    BizResponse<List<PlanSetInfoResponse>> queryPlanSetInfoListByIdList(@RequestBody List<Long> planIdList);
}
